<?php

class feed_Component_Block_Form_Photo extends Phpfox_component{
	public function process(){

            $aRows=Phpfox::getService("bible.category")->getAll();
            foreach($aRows as $iKey=>$aRow)
            {
                $aRows[$iKey]['book']=phpfox::getService("bible.book")->getBook_Category($aRow['category_id']);
            }
            
		$this->template()->assign(
                array(
                    'iMaxFileSize' => (Phpfox::getUserParam('photo.photo_max_upload_size') === 0 ? null : ((Phpfox::getUserParam('photo.photo_max_upload_size') / 1024) * 1048576)),
                    'sCategories' => Phpfox::getService('video.category')->get(),
                    'sSites' => Phpfox::getService('video.grab')->getSites(),
                    'aRows' => $aRows,
                )
            );
	}
}